﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XMLSchemaExtractor.Generator.DTDEntities
{
    public class ElementDetails
    {
        internal string name;
        internal int occurrences;
        internal bool hasCharacterContent;
        internal bool sequenced;
        internal SortedDictionary<string, ChildDetails> children;
        internal List<ChildDetails> childSeq;
        internal SortedDictionary<string, AttributeDetails> attributes;

        public ElementDetails(string name)
        {
            this.name = name;
            this.occurrences = 0;
            this.hasCharacterContent = false;
            this.sequenced = true;
            this.children = new SortedDictionary<string, ChildDetails>();
            this.childSeq = new List<ChildDetails>();
            this.attributes = new SortedDictionary<string, AttributeDetails>();
        }
    }
}
